Optimal. Leaf size=96 \[ -\frac{b \left (a+\frac{b}{x}\right )^{p+1} \left (c+\frac{d}{x}\right )^q \left (\frac{b \left (c+\frac{d}{x}\right )}{b c-a d}\right )^{-q} F_1\left (p+1;-q,2;p+2;-\frac{d \left (a+\frac{b}{x}\right )}{b c-a d},\frac{a+\frac{b}{x}}{a}\right )}{a^2 (p+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0605418, antiderivative size = 96, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158, Rules used = {375, 137, 136} \[ -\frac{b \left (a+\frac{b}{x}\right )^{p+1} \left (c+\frac{d}{x}\right )^q \left (\frac{b \left (c+\frac{d}{x}\right )}{b c-a d}\right )^{-q} F_1\left (p+1;-q,2;p+2;-\frac{d \left (a+\frac{b}{x}\right )}{b c-a d},\frac{a+\frac{b}{x}}{a}\right )}{a^2 (p+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 375
Rule 137
Rule 136
Rubi steps
\begin{align*} \int \left (a+\frac{b}{x}\right )^p \left (c+\frac{d}{x}\right )^q \, dx &=-\operatorname{Subst}\left (\int \frac{(a+b x)^p (c+d x)^q}{x^2} \, dx,x,\frac{1}{x}\right )\\ &=-\left (\left (\left (c+\frac{d}{x}\right )^q \left (\frac{b \left (c+\frac{d}{x}\right )}{b c-a d}\right )^{-q}\right ) \operatorname{Subst}\left (\int \frac{(a+b x)^p \left (\frac{b c}{b c-a d}+\frac{b d x}{b c-a d}\right )^q}{x^2} \, dx,x,\frac{1}{x}\right )\right )\\ &=-\frac{b \left (a+\frac{b}{x}\right )^{1+p} \left (c+\frac{d}{x}\right )^q \left (\frac{b \left (c+\frac{d}{x}\right )}{b c-a d}\right )^{-q} F_1\left (1+p;-q,2;2+p;-\frac{d \left (a+\frac{b}{x}\right )}{b c-a d},\frac{a+\frac{b}{x}}{a}\right )}{a^2 (1+p)}\\ \end{align*}
Mathematica [B] time = 0.302972, size = 206, normalized size = 2.15 \[ \frac{b d x (p+q-2) \left (a+\frac{b}{x}\right )^p \left (c+\frac{d}{x}\right )^q F_1\left (-p-q+1;-p,-q;-p-q+2;-\frac{a x}{b},-\frac{c x}{d}\right )}{(p+q-1) \left (x \left (a d p F_1\left (-p-q+2;1-p,-q;-p-q+3;-\frac{a x}{b},-\frac{c x}{d}\right )+b c q F_1\left (-p-q+2;-p,1-q;-p-q+3;-\frac{a x}{b},-\frac{c x}{d}\right )\right )-b d (p+q-2) F_1\left (-p-q+1;-p,-q;-p-q+2;-\frac{a x}{b},-\frac{c x}{d}\right )\right )} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.121, size = 0, normalized size = 0. \begin{align*} \int \left ( a+{\frac{b}{x}} \right ) ^{p} \left ( c+{\frac{d}{x}} \right ) ^{q}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a + \frac{b}{x}\right )}^{p}{\left (c + \frac{d}{x}\right )}^{q}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\left (\frac{a x + b}{x}\right )^{p} \left (\frac{c x + d}{x}\right )^{q}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + \frac{b}{x}\right )^{p} \left (c + \frac{d}{x}\right )^{q}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a + \frac{b}{x}\right )}^{p}{\left (c + \frac{d}{x}\right )}^{q}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]